<p id="notice"><%= notice %></p>
<h1 class="page-header">标签管理</h1>
<%= link_to '新增', new_admin_tag_path,class: 'btn btn-primary pull-right' %>
<div class="table-responsive">
  <table class="table table-striped">
    <thead>
    <tr>
      <th>#</th>
      <th>标签名称</th>
      <th colspan="3">操作</th>
    </tr>
    </thead>
    <tbody>
    <% @tags.each do |tag| %>
        <tr>
          <td><%= tag.id %></td>
          <td><%=	tag.name %></td>
          <td><%= link_to '查看', admin_tag_path(tag) %></td>
          <td><%= link_to '编辑', edit_admin_tag_path(tag) %></td>
          <td><%= link_to '删除', admin_tag_path(tag), method: :delete, data: { confirm: 'Are you sure?' } %></td>
        </tr>
    <% end %>
    </tbody>
  </table>
  <%= render partial: 'share/admin_pagination',locals: {pages: @tags},layout: false %>
</div>
